package com.epichust.bootumpp.model.dao;

import com.epichust.bootumpp.model.entity.Mbf5ProduceOpEresource;
import com.epichust.bootumpp.model.entity.Mbf5ProduceOperation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


@Mapper
public interface Mbf5ProduceOperationDao {

    List<Mbf5ProduceOperation> getAllByParams(Map<String, String> map);

    int insertProduceOperation(Mbf5ProduceOperation produceOperation);

    int updateProduceOperation(Mbf5ProduceOperation produceOperation);

    void common(Map<String, String> map);

    List<Map> getOpEresourceByParams(Map<String, String> map);

    void delOpEresource(String opGid);

    List<Map<String, String>> getGidByWcId(Map<String, String> wcId);

    int saveOpEresourceList(@Param("list") List<Mbf5ProduceOpEresource> list);
}
